package com.baseproject.datasource.local.database;

import android.support.annotation.NonNull;

import java.util.List;
import java.util.Map;

/**
 * Created by hp on 2017/6/14.
 */

public interface BaseLocalDatabaseStrategy {

    <T> void insertItem(@NonNull T item);
    <T> void insertItems(@NonNull List<T> items);

    <T> List<T> getList(Class<T> className, Map<String, String> where, String[] projections);

    <T> void delete(Class<T> className, Map<String, String> where);

    <T> void updateItem(@NonNull T item, Map<String, String> where);
    <T> void updateItems(@NonNull List<T> items, Map<String, String> where);

}
